package com.czk.utils;

import java.util.HashMap;
import java.util.Map;

/**
 * 服务器的服务注册
 *
 * @Author:ChenZhangKun
 * @Date: 2021/8/20 10:30
 */
public class ServerServiceCache {
    public static Map<String, Class> map = new HashMap<>();

    public static void register(String interfaceName, Class impl) {
        map.put(interfaceName, impl);
    }

    public static Class get(String interfaceName) {
        return map.get(interfaceName);
    }
}
